#pragma once

#ifdef _DEBUG
#include <iostream>
using std::wcout;
using std::endl;
using std::wstring;
#endif

#include <windows.h>
#include <strsafe.h>

namespace SubPlayer
{
    class ErrorExit
    {
    public:
        static void ShowMessage(LPCWSTR lpszFunction, boolean exit); 
        static void ShowMessage(const LPCSTR lpszFunction, boolean exit);
    };

    errno_t charToWChar(const char* text, wstring& wideStr);
}
